var t = getApp();

Page({
    data: {
        info: {},
        timer: null
    },
    onLoad: function(t) {
        this.getPayCode();
    },
    onReady: function() {},
    freshCode: function() {
        var t = this;
        this.data.timer = setInterval(function() {
            t.getPayCode();
        }, 6e4);
    },
    getPayCode: function() {
        var e = this;
        t._getNetWork({
            url: t.getNetAddresss("member.member-qr-code.pay-code"),
            success: function(n) {
                var o = n.data;
                1 == o.result ? (e.setData({
                    info: o.data
                }), e.data.timer || e.freshCode()) : (e.data.timer && clearInterval(e.data.timer), 
                t.tips(o.msg));
            }
        });
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});